package com.lilihub.miaosha.vo;

import com.lilihub.miaosha.validator.isPhone;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @BelongsProject: miaosha2
 * @BelongsPackage: com.lilihub.miaosha.vo
 * @Author: LiYing
 * @CreateTime: 2021-04-25 10:39
 * @Description:
 */

@Data
@ToString
public class LoginVo {


    @NotNull
    @isPhone   //自定义校验器
    private String phone;

    @NotNull
    private String password;




}
